<div class="form-compile">
    <form class="layui-form" lay-filter="add-form" >
        <div class="layui-form-item">
            <label class="layui-form-label required">角色名</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="roleName" lay-verify="required" placeholder="请输入角色名">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">角色编码</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="roleCode" lay-verify="required" placeholder="请输入角色编码" >
            </div>
        </div>
        
        <div class="layui-form-item">
            <label class="layui-form-label required">等级排序</label>
            <div class="layui-input-inline">
                <input class="layui-input" type="text" name="roleSort"  placeholder="请输入排序" >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">状态</label>
            <div class="layui-input-inline">
            	<select id="roleAddRoleStatus" name="roleStatus"  lay-verify="required"></select>
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入内容" class="layui-textarea" name="remark" ></textarea>
            </div>
        </div>
        <div class="layui-form-item form-finally">
            <button type="button" class="layui-btn" lay-submit="" lay-filter="role-add" id="roleAddSave">保存</button>
            <button type="button" class="layui-btn" onclick="closePopup()">关闭</button>
        </div>
    </form>
</div>
<script>
$("#roleAddRoleStatus").initSelectDict();
$("#roleAddSave").formSubmit({
	url : ctx + "/sys/role/add"
});
</script>
